<?php
/**
 * Created by PhpStorm.
 * Date: 2021/8/6 21:16
 * Author:Guo Zhichao
 * File: SelfCallSelf.php
 * Desc:
 */

namespace Test;

//链式调用的例子
//链式调用的关键点在于，方法内部返回$this
class SelfCallSelf
{
    public function order($order){
        return $this;
    }
    public function limit($limit){
        return $this;
    }
    public function where($where){
        return $this;
    }
}
